logical c questions